package com.xjrccb.bizplat.mpbank.web;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSONObject;
import com.xjrccb.bizplat.mpbank.impl.constants.EOSConstants;
import com.xjrccb.bizplat.mpbank.impl.desensitize.Verification;
import com.xjrccb.bizplat.mpbank.impl.utils.EOSUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.github.jsonzou.jmockdata.JMockData;
import com.xjrccb.bizplat.ebaffle.utils.MockData;

@RestController
@Api("${businessNameNotes}")
@RequestMapping("${businessName}")
public class Fs${businessName?cap_first}Controller {

<#if mockcolumns??>
<#list mockcolumns as column>

	/**
	* ${column.modelNameNotes}
	*/
	@PostMapping("${column.eosPath}")
	@ApiOperation(value = "${column.modelNameNotes}",notes = "/authorization/${column.modelName?uncap_first}",response = Fs${column.modelName?cap_first}Output.class)
	public MyBody ${column.modelName?uncap_first}(@RequestBody Fs${column.modelName?cap_first}Input obj) {
		System.out.println(JSON.toJSONString(obj));
		Fs${column.modelName?cap_first}Output resobj = JMockData.mock(Fs${column.modelName?cap_first}Output.class, MockData.getMockConfig());

		resobj.setRspHead(new RspHead());
		MyBody myBody = new MyBody();
		myBody.setResult(resobj);
		System.out.println(JSON.toJSONString(myBody));
		return myBody;
	}

</#list>
</#if>

}